package com.demo.springcloud.netflix.erureka;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

import jakarta.annotation.PreDestroy;

/**
 * Spring Cloud Netflix Eureka Register1
 * 
 * @author xiaojianhx
 * @version V1.0.0 $ 2023-11-15 00:00:45 init ---- xiaojianhx
 */
@SpringBootApplication
@EnableEurekaServer
public class SpringCloudNetflixEurekaRegister1 {

    public static void main(String[] args) {
        SpringApplication.run(SpringCloudNetflixEurekaRegister1.class, args);
    }

    @PreDestroy
    public void destroy() {
        System.out.println("pre destroy running....");
    }
}